package org.extremecomponents.table.view.freemarker.extend;

import org.extremecomponents.table.bean.Export;
import org.extremecomponents.table.core.TableModel;
import org.extremecomponents.table.view.html.BuilderUtils;
import org.extremecomponents.table.view.html.TableActions;

/**
 * @author Eccn-sshwsfc
 *
 */
public class ExportExtend {

	private TableModel model;
	private Export export;

	public ExportExtend(TableModel model, Export export) {
		this.model = model;
		this.export = export;
	}

	public String getExportAction(){
		return new TableActions(model).getExportAction(export.getView(), export.getFileName());
	}
	
	public String getImage(){
		return BuilderUtils.getImage(model, export.getImageName());
	}
}
